package org.example.thymeleaf.demo.demos.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.thymeleaf.demo.demos.mapper.MergeTemplateMapper;
import org.example.thymeleaf.demo.demos.entity.MergeTemplate;
import org.example.thymeleaf.demo.demos.service.MergeTemplateService;
import org.springframework.stereotype.Service;

/**
 * (MergeTemplate)表服务实现类
 *
 * @author makejava
 * @since 2024-09-11 10:44:12
 */
@Service("mergeTemplateService")
public class MergeTemplateServiceImpl extends ServiceImpl<MergeTemplateMapper, MergeTemplate> implements MergeTemplateService {

    @Override
    public void saveByBytes(byte[] bytes) {
        this.save(MergeTemplate.builder().companyName("test公司").templateName("test模板").templateValue(bytes).build());
    }
}

